package com.example.test.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 读取配置文件参数
 * @ClassName: 林文峰
 * @Author Administrator
 * @Date 2020/6/18 0018
 */
@Component
@ConfigurationProperties(prefix = "demo")
@PropertySource(value = "config.properties")
public class PropertiesConfig {

	private String phone;

	private String wife;

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getWife() {
		return wife;
	}

	public void setWife(String wife) {
		this.wife = wife;
	}
}
